//
//  CNCollectStatusViewModel.h
//  BBSModule
//
//  Created by 邓建东 on 2020/5/19.
//  Copyright © 2020 dong. All rights reserved.
//

#import "BaseViewModel.h"
#import "CNMineCollectFoldersModel.h"
#import "CNMineNewCollectModel.h"
NS_ASSUME_NONNULL_BEGIN

@interface CNCollectStatusViewModel : BaseViewModel

/** 返回个数 */
@property (nonatomic)NSInteger rowNumber;

@property (nonatomic,assign) NSInteger code;

@property (nonatomic,strong) NSString *message;

@property (nonatomic, assign) BOOL isListEnd; // 是否加载到最后一页

@property (nonatomic, assign) BOOL isFolder; // 是否收藏

@property (nonatomic, strong) CNMineCollectFoldersModel *editFolderModel;

/**
 *  判断是否是最大页数
 *
 *
 */
- (BOOL)isHasMore;


@property (nonatomic, assign) NSInteger page;


- (NSString *)collectFolderNameForRow:(NSInteger)row;

- (NSInteger)collectFolderFavoriteNumForRow:(NSInteger)row;

- (NSString *)collectFolderIdForRow:(NSInteger)row;

- (BOOL)collectFolderIsFavoritedForRow:(NSInteger)row;

- (NSString *)collectFolderFavoriteIdForRow:(NSInteger)row;

// 查询是否收藏
- (void)checkFavoriteWithUrl:(NSString *)url source:(NSString *)source completionHandle:(CompletionHandle)completionHandle;

/// 单条取消收藏
- (void)delFavoriteWithFavoritedId:(NSString *)FavoritedId  completionHandle:(CompletionHandle)completionHandle;

/// 单条添加收藏
- (void)addFavoriteWithFolderId:(NSString *)folderId collectionModel:(CNMineNewCollectModel *)collectModel completionHandle:(CompletionHandle)completionHandle;


- (void)editFolderWithFolderId:(NSString *)folderId folderName:(NSString *)folderName desc:(NSString *)desc isPrivate:(BOOL)isPrivate completionHandle:(CompletionHandle)completionHandle;

// 添加删除编辑收藏夹
- (void)addFolderWithFolderName:(NSString *)folderName desc:(NSString *)desc isPrivate:(BOOL)isPrivate completionHandle:(CompletionHandle)completionHandle;

@end

NS_ASSUME_NONNULL_END
